//设备新增
import commonRequest from '/@/api/common/common';
import { validateNumberFixed4 } from '/@/utils/validators';
import { i18n } from '/@/locales/i18n';
const $t = i18n.global.t;

export default function (data: any, state: any) {
	const array = [
		{
			type: 'input',
			label: $t('v7pLzW5PqK1SJjiEmv5G'),
			key: 'v_Legal_Name',
			value: data.v_Legal_Name || '',
			rules: [{ required: true, message: $t('7LkKYu4Cp4ATlKfAm3kZ'), trigger: ['blur', 'change'] }],
			placeHolder: $t('kSAulJ7zkKoGAgiUfoNl'),
			disabledStyle: state,
		},

		{
			type: 'input',
			label: $t('vojzRlsNvJPu4iBa88B0Z'),
			key: 'v_Terms_Of_Use',
			value: data.v_Terms_Of_Use || '',
			rules: [{ required: true, message: $t('7LkKYu4Cp4ATlKfAm3kZ'), trigger: ['blur', 'change'] }],
			placeHolder: $t('wJgHg3B1gAyfFu7QuEtvv'),
			disabledStyle: state,
		},
		{
			type: 'input',
			label: $t('jwJg6hwfEBmgAPxDbkOx'),
			key: 'v_Legal_Evluate',
			value: data.v_Legal_Evluate || '',
			rules: [{ required: true, message: $t('7LkKYu4Cp4ATlKfAm3kZ'), trigger: ['blur', 'change'] }],
			placeHolder: $t('evx6mPRhuFSmIz4dFrvsv'),
			disabledStyle: state,
		},

		{
			type: 'input',
			label: $t('aiuXYhKUebxU53Afi1YGp'),
			key: 'v_Company_Status_Description',
			value: data.v_Company_Status_Description || '',
			rules: [{ required: true, message: $t('7LkKYu4Cp4ATlKfAm3kZ'), trigger: ['blur', 'change'] }],
			placeHolder: $t('yGxuMxgPRqlkJt08vT9'),
			disabledStyle: state,
		},
		{
			type: 'input',
			label: $t('x6Gu2MzkKep53xwOGn0Pf'),
			labelWidth: 110,
			key: 'v_Legal_Requirement',
			value: data.v_Legal_Requirement || '',
			rules: [{ required: true, message: $t('7LkKYu4Cp4ATlKfAm3kZ'), trigger: ['blur', 'change'] }],
			placeHolder: $t('s3mJ0gaJUdEwutuf1S58'),
			disabledStyle: state,
		},
		{
			type: 'input',
			label: $t('9RLaVEiJf1Z1Qv15o6Kll'),
			key: 'v_Remake',
			value: data.v_Remake || '',
			disabledStyle: state,
		},
		{
			type: 'input',
			label: $t('xxAj6fsjvIsQrMdlNpolv'),
			key: 'createdTime',
			value: data.createdTime || '',
			disabledStyle: true,
		},
		{
			type: 'input',
			label: $t('v7AhfaNeGaFoPfZzgpFk'),
			key: 'createdUserName',
			value: data.createdUserName || '',
			disabledStyle: true,
		},
		{
			type: 'input',
			label: $t('hMMqYalIdWhk0McqdxTg'),
			key: 'updatedTime',
			value: data.updatedTime || '',
			disabledStyle: true,
		},
		{
			type: 'input',
			label: $t('2Gu4SnAncIkNclplw6vNj'),
			key: 'updatedUserName',
			value: data.updatedUserName || '',
			disabledStyle: true,
		},
		{
			type: 'slot',
			slotName: 'tint1',
			label: $t('s4KbtSrTfOzuWyRcHgTxx'),
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},
		{
			type: 'slot',
			slotName: 'Detail',
		},
	];
	return array;
}
